package net.edu_soft.ec.asset.pojo;

import java.io.Serializable;

public class FactoryType implements Serializable {
    /**
     * 厂家类型id
     */
    private Integer factoryTypeId;

    /**
     * 名称
     */
    private String name;

    /**
     * 父id
     */
    private Integer parentId;

    /**
     * 状态0可用1不可用
     */
    private Integer status;

    private static final long serialVersionUID = 1L;

    public Integer getFactoryTypeId() {
        return factoryTypeId;
    }

    public void setFactoryTypeId(Integer factoryTypeId) {
        this.factoryTypeId = factoryTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", factoryTypeId=").append(factoryTypeId);
        sb.append(", name=").append(name);
        sb.append(", parentId=").append(parentId);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}